<?php

namespace app\admin\controller\user;

use app\admin\controller\AdminController;
use app\admin\service\user\VisitLogService;
use think\response\Json;

class VisitLog extends AdminController
{
    /**
     * 查看用户浏览日志列表
     * @return Json
     */
    public function lists()
    {
        return $this->data(VisitLogService::getList());
    }

    /**
     * 用户浏览日志详情
     * @return Json
     */
    public function detail()
    {
        $params = $this->getData(['id']);
        $result = VisitLogService::detail($params);
        return $this->data($result);
    }
}